<%--
  Created by IntelliJ IDEA.
  User: Damon
  Date: 2018/4/20
  Time: 22:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<script src="jquery/jquery.min.js"></script>
<script src="layui/layui.js"></script>
<link rel="stylesheet" href="layui/css/layui.css">

<style>
    .juzhong{
        position:absolute;
        top:70%;
        left:50%;
        margin:-150px 0 0 -150px;
        width:300px;
        height:300px;

    }
</style>
<style>.alsp{ font-family:"楷体"; font-size:36px}</style>
<body class="layui-bg-gray">

<input type="hidden" id="ids"  value="<%=request.getParameter("id")%>">

<div class="layui-carousel" id="test1">
    <div carousel-item>
        <div><img src="img/1b4c510fd9f9d72a2f80d030df2a2834349bbb33.jpg"></div>
        <div><img src="img/1b4c510fd9f9d72a2f80d030df2a2834349bbb33.jpg"></div>
        <div><img src="img/1b4c510fd9f9d72a2f80d030df2a2834349bbb33.jpg"></div>
        <div><img src="img/1b4c510fd9f9d72a2f80d030df2a2834349bbb33.jpg"></div>
        <div><img src="img/1b4c510fd9f9d72a2f80d030df2a2834349bbb33.jpg"></div>
    </div>
</div>
<div class="alsp"><p>已经成功加入购物车~~~</p></div>


<div class=juzhong>

    <button class="layui-btn layui-btn-radius" onclick="shop()"> 返回商品详情</button>&nbsp;&nbsp;&nbsp

    <i class="layui-icon" style="font-size: 30px; color: #1E9FFF;">&#xe698</i>
    <button  class="layui-btn layui-btn-normal"  onclick="shopCar()">去购物车查看</button>
</div>


<script>


    layui.use('carousel', function(){
        var carousel = layui.carousel;
        //建造实例
        carousel.render({
            elem: '#test1'
            ,width: '100%' //设置容器宽度
            ,arrow: 'always' //始终显示箭头
            ,anim: 'updown' //切换动画方式
        });
    });
</script>

<script>

    function shop(){

        location.href="http://localhost:8080/index.jsp"

    }

     function  shopCar(){
        var  ids = $("#ids").val();
         location.href="http://localhost:8080/shopCar.jsp?ids="+ids
     }


</script>
</body>
</html>
